using System;

namespace MetaView.Core;

/// <summary>
/// 配置文件基类
/// </summary>
public class Config : DependencyObject, ICloneable
{
    /// <summary>
    /// 克隆配置依赖项，并返回一个新的克隆对象。
    /// </summary>
    /// <returns></returns>
    public Config Clone()
    {
        this.ThrowIfDisposed();

        var config = new Config();
        this.CloneTo(config, true);
        return config;
    }

    object ICloneable.Clone()
    {
        return this.Clone();
    }
}